import { createRouter, createWebHashHistory } from 'vue-router'
import HomePage from '../views/HomePage.vue'

const routes = [
  {
    path: '/',
    name: 'home',
    component: HomePage,
    children:[
      {
        path: '/',
        name: 'Tuijina',
        component: () => import('../components/TuiJian.vue')
      },
      {
        path: 'qeiHuan',
        name: 'QeiHuan',
        component: () => import('../components/QeiHuan.vue')
      },
      {
        path: 'quanbu',
        name: 'Quanbu',
        component: () => import('../components/QuanBu.vue')
      },
    ],
  },
]

const router = createRouter({
  history: createWebHashHistory("/#"),
  routes
})

export default router
